<!-- 栏目内容 -->
<li class="diaryContent-li" th:each="item : ${resourcesList}" th:fragment="reccontent">
	<!-- 有视频 -->
	<th:block th:if="${item.videoUrl != null && item.videoUrl != ''}">
		<div class="diaryContent-liA">
			<div class="diaryContent-liA-text">
				<a target="_blank" th:href="'/details/' + ${item.articleId}" class="diaryContent-liA-h2" th:text="${item.title}"></a>
				<p class="diaryContent-liA-p2" th:text="${item.summary}"></p>
				<!--评论点赞查看-->
				<div class="diaryContent-liA-p3">
					<div class="diaryContent-liA-time">
						<div class="y-box resfooter"> 
							<div class="y-left">  
								<div class="y-left"> 
									<a class="lbtn media-avatar" target="_blank" th:href="${'/t/' + item.user.userId}"> 
										<img alt="" th:src="${item.user.avatar}"> 
									</a> 
									<a class="lbtn source J_source" target="_blank" th:href="${'/t/' + item.user.userId}" th:text="${'&nbsp;' + item.user.nickName + '&nbsp;'}"></a> 
								</div>
								<a class="lbtn comment" target="_blank" th:href="'/details/' + ${item.articleId}" th:text="${'⋅&nbsp;' + item.readSizeFormat + '阅读&nbsp;'}"></a> 
								<a class="lbtn comment" target="_blank" th:href="'/details/' + ${item.articleId}" th:text="${'⋅&nbsp;' + item.voteSizeFormat + '点赞&nbsp;'}"></a>
								<span class="lbtn" th:text="${'⋅&nbsp;' + item.time}"></span>   
							</div> 
						</div>
					</div>
				</div>
			</div>
			<div class="diaryContent-liA-fr">
				<div class="img-box-c">
					<a class="diaryContent-liA-imgA" target="_blank" th:href="'/details/' + ${item.articleId}"> 
						<img class="lazy" title="" alt="" th:if="${item.coverVideo == ''}" originalSrc="/assets/images/cover/true.png" style="display: block; background: none;">
						<img class="lazy" title="" alt="" th:if="${item.coverVideo != ''}" th:attr="originalSrc=${item.coverVideo}" style="display: block; background: none;">
					</a>
				</div>
			</div>
		</div> 
	</th:block>
	<!-- 无视频 -->
	<th:block th:if="${item.videoUrl == null || item.videoUrl == ''}">
		<!-- 图片小于三张 -->
		<div class="diaryContent-liA" th:if="${item.imgs.size() < 3}">
			<div class="diaryContent-liA-text">
				<a target="_blank" th:href="'/details/' + ${item.articleId}" class="diaryContent-liA-h2" th:text="${item.title}"></a>
				<p class="diaryContent-liA-p2" th:text="${item.summary}"></p>
				<!--评论点赞查看-->
				<div class="diaryContent-liA-p3">
					<div class="diaryContent-liA-time">
						<div class="y-box resfooter"> 
							<div class="y-left">  
								<div class="y-left"> 
									<a class="lbtn media-avatar" target="_blank" th:href="${'/t/' + item.user.userId}"> 
										<img alt="" th:src="${item.user.avatar}"> 
									</a> 
									<a class="lbtn source J_source" target="_blank" th:href="${'/t/' + item.user.userId}" th:text="${'&nbsp;' + item.user.nickName + '&nbsp;'}"></a> 
								</div>
								<a class="lbtn comment" target="_blank" th:href="'/details/' + ${item.articleId}" th:text="${'⋅&nbsp;' + item.readSizeFormat + '阅读&nbsp;'}"></a> 
								<a class="lbtn comment" target="_blank" th:href="'/details/' + ${item.articleId}" th:text="${'⋅&nbsp;' + item.voteSizeFormat + '点赞&nbsp;'}"></a>
								<span class="lbtn" th:text="${'⋅&nbsp;' + item.time}"></span>   
							</div> 
						</div>
					</div>
				</div>
			</div>
			<!-- 存在封面图 -->
			<div class="diaryContent-liA-fr" th:if="${item.coverImage != ''}">
				<a class="diaryContent-liA-imgA" target="_blank" th:href="'/details/' + ${item.articleId}"> 
					<img th:attr="originalSrc=${item.coverImage}" alt="" />
				</a>
			</div>
		</div> 
		<!-- 图片大于三张 -->
		<div class="diaryContent-liA" th:if="${item.imgs.size() > 3}">
			<div class="diaryContent-liA-text">
				<a target="_blank" th:href="'/details/' + ${item.articleId}" class="diaryContent-liA-h2" th:text="${item.title}"></a>
				<ul class="diaryContent-liA-ul">
					<li class="diaryContent-Ili" th:each="imglist,liStat:${item.imgs}" th:if="${liStat.index < 4}">
						<a class="diaryContent-IliA" target="_blank" th:href="'/details/' + ${item.articleId}"> 
							<img class="diaryContent-IlImg"  th:attr="originalSrc=${imglist}" alt="" />
						</a>
					</li>
				</ul>
				<!--评论点赞查看-->
				<div class="diaryContent-liA-p3">
					<div class="diaryContent-liA-time">
						<div class="y-box resfooter"> 
							<div class="y-left">  
								<div class="y-left"> 
									<a class="lbtn media-avatar" target="_blank" th:href="${'/t/' + item.user.userId}"> 
										<img alt="" th:src="${item.user.avatar}"> 
									</a> 
									<a class="lbtn source J_source" target="_blank" th:href="${'/t/' + item.user.userId}" th:text="${'&nbsp;' + item.user.nickName + '&nbsp;'}"></a> 
								</div>
								<a class="lbtn comment" target="_blank" href="" th:text="${'⋅&nbsp;' + item.readSizeFormat + '阅读&nbsp;'}"></a> 
								<a class="lbtn comment" target="_blank" href="" th:text="${'⋅&nbsp;' + item.voteSizeFormat + '点赞&nbsp;'}"></a>
								<span class="lbtn" th:text="${'⋅&nbsp;' + item.time}"></span>  
							</div> 
						</div>
					</div>
				</div>
			</div>
		</div>
	</th:block>
</li>
	
